import 'package:flutter_demo/core/common/net/init_dio.dart';
import 'package:flutter_demo/core/common/values/server.dart';
import 'package:flutter_demo/ui/pages/search/mudule/query_search_page.dart';

class SearchApi {
  static Future<QuerySearchPageVO> querySearchPage(
      {required String pageNo,
      required String keyWord,
      required String channel}) async {
    final response = await httpManager.post('/search/querySearchPage',
        {'pageNo': pageNo, 'keyWord': keyWord, 'channel': channel});
    logger.i(response.data);
    return QuerySearchPageVO.fromJson(response.data);
  }
}
